//
//  timeTableView.h
//  ElektroM
//
//  Created by Michael on 12.10.09.
//  Copyright 2009 Artgruppe inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#include "structForDB.h"

@class dataBase;
@interface detailedTimeTable : UIViewController <UINavigationBarDelegate, UITableViewDelegate, 
	UITableViewDataSource>{	

	timeTableInfo* _iTimeTables;
		dataBase* _db;
	NSString* _sDataBaseName;
	bool _bUseFilter;	// if we shouldn't show time of leaved trains	
	int _nRecordsCount;	
	NSString** _strNames;  	// names of all stations on the direction
	NSString** _strTimes;	// time of stops
	NSUInteger* _nIndexes;

	//iApple:
	NSArray* 	_aiTrainTimes;
	NSArray*	_aiTrainStations;
	NSUInteger 	_nTrainTimesCount;
	NSArray* 	_aiStationsNames;
		
	bool		_bReleaseMySelf;

		
	// external:	
	NSString* strTitle;	// string for showing station name on the upper part of the screen
		
	NSString* TrainId; 	// id by which we would get records from the DB;
	// experemental element for showing detailed info about train:
	IBOutlet UITableView *tableView;	// for updating table
	// stuff needed for hiding tabBar and showing instead our toolbar:
	UITabBarController* tabBarController;
}
@property (nonatomic, retain) UITabBarController* tabBarController;

@property (nonatomic, retain) NSString* TrainId;
// outlets:
@property (nonatomic, retain) IBOutlet UITableView *tableView;
// upper title:
@property (nonatomic, retain) NSString* strTitle;
@property (nonatomic, retain) NSString* _sDataBaseName;

-(void)updateData;
@end
